package com.adam.management.service;

import com.adam.management.dto.SysMenuDTO;
import com.adam.management.model.UserDTO;
import com.adam.management.response.ResponseData;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @projectName: adam-management-system
 * @description:
 * @author: Adam
 * @create: 2019-10-16 13:22
 **/

@Service
public interface SysMenuService {

    List<SysMenuDTO> getMenusWithPermission(UserDTO userDTO);

    List<SysMenuDTO> getMenusWithSorted(UserDTO userDTO);

    ResponseData<Boolean> editMenuByPrimaryKey(SysMenuDTO sysMenuDTO);

    ResponseData<Boolean> addMenu(SysMenuDTO sysMenuDTO);

    ResponseData<Boolean> deleteMenu(List<String> ids);
}
